
#include "Message.h"
#include <string>
#include <iostream>

Message::Message(int original_source_id, int source_id,int current_target_id, int target_id)
	: _original_source_id(original_source_id),
	  _current_source_id(source_id),
	  _current_target_id(current_target_id),
	  _target_id(target_id)
{
}

Message::Message()
{
}

Message::~Message() {
}

void Message::print()
{
	//cout << "\n---------------------------" << endl;
	cout << "\nMessage:" << endl;
	cout << "--------" << endl;
	cout << "   original source  : " << _original_source_id << endl;
	cout << "   current source id: " << _current_source_id << endl;
	cout << "   current target id: " << _current_target_id << endl;
	cout << "   target id        : " << _target_id << endl;
	//cout << "---------------------------" << endl << endl;
}

void Message::print_small()
{
	cout << "(" << _original_source_id << ", " << _current_source_id << ", ";
	cout << _current_target_id << ", " << _target_id << ")";
}
